package com.chinasofti.io;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        //在当前模块（java419）下创建文件夹  模块名\\aaa\\bbb ,在该路径下创建a.txt文件，
        //文件内容为helloIO；

        File f1 = new File("java0419\\aaa\\bbb");
        f1.mkdirs();


        FileOutputStream fos = new FileOutputStream("java0419\\aaa\\bbb\\a.txt");
        byte[] bys = "helloIO".getBytes();
        fos.write(bys,0,bys.length);

        fos.close();
    }
}
